if(document.forms['manageMoveForm'].moveNodes != null && document.forms['manageMoveForm'].moveNodes.length > 0){
	if(document.forms['manageMoveForm'].moveTreeSelectedNodesList.value.length > 0){	
		var selectedNodesList = document.forms['manageMoveForm'].moveTreeSelectedNodesList.value.split("#");
		for(var index=0; index < selectedNodesList.length; index++){
			var currentCheckingNode = selectedNodesList[index];
			for(var j=0; j < document.forms['manageMoveForm'].moveNodes.length; j++){
				if(document.forms['manageMoveForm'].moveNodes[j].value == currentCheckingNode)
					document.forms['manageMoveForm'].moveNodes[j].checked = true;
			}
		}
	}
				
	var checkedNodes = new Array();
	var count = 0;
	for(var index=0; index < document.forms['manageMoveForm'].moveNodes.length; index++){
		if(document.forms['manageMoveForm'].moveNodes[index].checked){
			checkedNodes[count] = document.forms['manageMoveForm'].moveNodes[index].value;
			count = count + 1;
		}
	}
	for(var nodeCount=0; nodeCount < checkedNodes.length; nodeCount++){
		for(var index=0; index < document.forms['manageMoveForm'].moveNodes.length; index++){
			if(document.forms['manageMoveForm'].moveNodes[index].value.match(checkedNodes[nodeCount]) != null && document.forms['manageMoveForm'].moveNodes[index].value != checkedNodes[nodeCount]){
				document.forms['manageMoveForm'].moveNodes[index].checked = true;
				document.forms['manageMoveForm'].moveNodes[index].disabled = true;
			}
		}
	}	
}

//for(var index=0; index < document.moveForm.moveNodes.length; index++){
	//if(document.moveForm.moveNodes[index].value.match(document.moveForm.hierarchyTreeSelectedNodeId.value) != null){
		//document.moveForm.moveNodes[index].checked = false;
		//document.moveForm.moveNodes[index].disabled = true;
	//}
//}
